package com.xhsj.user.hr.process.dto.hrBecomeRegular;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Author: liuqinghua
 * @Description:我的转正申请列表
 * @Data:2020/9/11
 */
@Data
public class MyBecomeRegularApplyListDto {
    // 当前第几页
    @NotNull(message = "page当前第几页不能为空")
    private Integer page = 1;

    // 当前页有几条数据
    @NotNull(message = "size当前页有几条数据不能为空")
    private Integer size = 20;

    // 用户
    private String fullName;

    // 部门
    private Long departmentId;

    // 职位
    private Long positionId;

    // 转正时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date positiveDate;

    // 转正时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endPositiveDate;

}
